	<div id="content">
<?php if ( ( get_option('sticky_posts') || get('ini_ad1') ) && !get('ini_mark') ){ # 判断是否有置顶文章或者广告1?>
		<div class="main">
<?php if ( get('ini_ad1') ) echo "			<div class='ad1'>".get('ini_ad1_code')."</div>"?>
			<div class="sticky clear">
<?php
$num = get('ini_sticky') ? get('ini_sticky') : 4;
$args = array( 'post__in' => get_option('sticky_posts'), 'showposts' => $num, 'caller_get_posts' => 1 );
query_posts($args);
while ( have_posts() ): the_post();
?>
				<article>
					<h2><?php ini_title(0,1,1)?></h2>
					<div class="post-info"><?php echo '<span><i class="icon-calendar"></i>&nbsp;'; the_category(', '); echo '</span>'; if( get('ini_rate') ) fancyratings(); else echo '<span><i class="icon-time"></i>&nbsp;<time datetime="'. get_the_time('Y-m-d') .'">'. get_the_time('Y-m-d') .' </time></span>'; echo edit_post_link('编辑文章', '<span><i class="icon-edit"></i>&nbsp;', '</span>');?></div>
					<?php echo get_img(86,86)?>
					<section class="post-entry">
						<?php ini_excerpt()?>
						<?php ini_tags()?>
					</section>
				</article>
<?php
endwhile;
wp_reset_query();
?>
			</div><?php#end sticky?>
		</div><?php# end main1?>
<?php }?>

		<div class="main">
<?php if ( get('ini_ad2') ) echo "<div class='ad2'>".get('ini_ad2_code')."</div>"?>
<?php
if ( function_exists('themedie') ) :
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
$args = array(
	'caller_get_posts' => 1,
	'paged' => $paged,
	'showposts' => get_option('ini_pre_posts') ? get_option('ini_post_num') : '',
	'cat' => get('ini_cat')
);
query_posts($args);
while ( have_posts() ): the_post();
	include 'article.php';
endwhile;
wp_reset_query();
endif;
?>
		</div><?php#end main2?>
		<div class="main">
<?php pagination( $query_string, $posts_per_page)?>
		</div>
	</div><?php#end content?>